using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ThuySan.Bussiness
{
	[Serializable]
	[Table("[dbo].[Tag]")]
	public partial class Tag
	{

		#region Properties

		[Key]
		[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[Required]
		[Column("TagId")]
		public System.Int32 TagId { get; set; }

		[Column("Name")]
		public System.String Name { get; set; }

		[Column("PageUrl")]
		public System.String PageUrl { get; set; }

		[Column("IsTopMenu")]
		public System.Boolean? IsTopMenu { get; set; }

		[Column("IsLeftColumn")]
		public System.Boolean? IsLeftColumn { get; set; }

		[Column("IsRightColumn")]
		public System.Boolean? IsRightColumn { get; set; }

		[Column("Description")]
		public System.String Description { get; set; }

		[Column("Avatar")]
		public System.String Avatar { get; set; }

		[Column("Detail")]
		public System.String Detail { get; set; }

		[Column("IsStaticContent")]
		public System.Boolean? IsStaticContent { get; set; }

        [Column("IsFooter")]
        public System.Boolean? IsFooter { get; set; }

		#endregion

		#region Navigation

		[ForeignKey("TagId")]
		public virtual ICollection<CategoryTag> CategoryTags { get; set; }
		[ForeignKey("TagId")]
		public virtual ICollection<ProductTag> ProductTags { get; set; }

		#endregion

	}
}
